package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Account;
import com.example.entity.User;

import java.util.List;

public interface UserService extends IService<User> {
    public void add(User user);

    public void deleteById(Integer id);

    public void deleteBatch(List<Integer> ids);


    public User selectById(Integer id);

    public List<User> selectAll(User user);

    public Page<User> selectPage(User user, Integer pageNum, Integer pageSize);

    public Account login(Account account);

    /**
     * 注册
     */
    public void register(Account account);

    /**
     * 修改密码
     */
    public void updatePassword(Account account);
}
